package com.mfangsoft.zhuangjialong.integration.newActivity.mapper;

import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;

@WriterRepository
public interface NewActivityMapper {
	void addActivityTemplate(Map<String, Object> map);

	void addActivity(Map<String, Object> map);

	void addActivityContent(Map<String, Object> map);

	Integer updateActivityTemplate(Map<String, Object> map);

	Integer updateActivity(Map<String, Object> map);

	void deleteActivityContent(Map<String, Object> map);

	Integer selectActivityCode(String code);

	void delectActivity(Map<String, Object> map);

	List<Map<String, Object>> selectActivityTemplatePage(Page<Map<String, Object>> page);

	List<Map<String, Object>> selectWeiFaBuPage(Page<Map<String, Object>> page);

	List<Map<String, Object>> selectPublishList(Integer pid);

	Map<String, Object> selectTemplateDetail(Integer p_id);

	List<Map<String, Object>> selectTemplateFiliale(Integer p_id);

	Map<String, Object> selectActivityDetail(Integer activity_id);

	List<Map<String, Object>> selectActivityContent(Integer activity_id);

	void addActivityShop(Map<String, Object> map);

	void deleteActivityShop(Integer activity_id);

	List<Map<String, Object>> selectActivityShop(Integer activity_id);

	List<Map<String, Object>> selectGifts(List<String> gifts);

	/**
	 * 查看开发者的活动列表
	 * 
	 * @param page
	 * @return
	 */
	List<Map<String, Object>> selectKFZActivityPage(Page<Map<String, Object>> param);

	/**
	 * 查看集团的活动列表
	 * 
	 * @param page
	 * @return
	 */
	List<Map<String, Object>> selectThreeActivityPage(Page<Map<String, Object>> param);

	/**
	 * 查看分公司的活动列表
	 */
	List<Map<String, Object>> selectTwoActivityPage(Page<Map<String, Object>> param);

	/**
	 * 查看一级的活动列表
	 * 
	 * @param page
	 * @return
	 */
	List<Map<String, Object>> selectOneActivityPage(Page<Map<String, Object>> param);

	List<Map<String, Object>> selectActivityApplyListPage(Page<Map<String, Object>> param);
	
	Map<String,Object> selectActivityStatistics(Integer activity_id);
}
